package com.golxen.framework.user.dao;


import com.golxen.framework.user.dao.entity.UserInfo;

import java.util.Map;

public class UserBussiness {


    public static Map<Long, UserInfo> getUserInfoMap() {
        return new UserDaoImpl().getUserInfoMap();
    }

    public static UserInfo getUserInfoByUserId(long userId) {
        return new UserDaoImpl().getUserInfoByUserId(userId);
    }


    public static UserInfo register(long userId) {
        return new UserDaoImpl().register(userId);
    }

    public static boolean updateUserInfo(UserInfo userInfo) {
        return new UserDaoImpl().update(userInfo);
    }

    public static boolean isSameNickName(String nickName) {
        return new UserDaoImpl().isSameNickName(nickName);
    }


    public static boolean updateNickName(long userId, String nickName) {
        return new UserDaoImpl().updateNickName(userId, nickName);
    }



    public static long getMaxUserId() {
        return new UserDaoImpl().getMaxUserId();
    }

    public static boolean checkSqlConnectionStatus(){
        return new UserDaoImpl().checkSqlConnectionStatus();
    }




}
